import tkinter as tk
from app import ShutdownTimerApp

if __name__ == "__main__":
    root = tk.Tk()
    app = ShutdownTimerApp(root)

    # 确保应用关闭时清理资源
    root.protocol("WM_DELETE_WINDOW", lambda: [app.destroy(), root.destroy()])

    root.mainloop()